package com.qpuc;
import android.os.CountDownTimer;
import android.widget.Button;
import android.widget.ProgressBar;
import android.widget.TextView;


public class CompteurFinale extends CountDownTimer {

	private ProgressBar pg;
	
	public CompteurFinale(long millisInFuture, long countDownInterval, ProgressBar pg){
		super(millisInFuture, countDownInterval);
		this.pg = pg;
	}
	
	public void onTick(long millisUntilFinished) {
        pg.setProgress((int) (10 - (millisUntilFinished / 1000))*10);
    }

    public void onFinish() {
    }
    
}
